package com.yhn.hxds.common.constant;

/**
 * Redis常量
 *
 * @author yhn
 * @version 1.0
 * @description
 * @date 2024/3/20 9:17
 */

public class RedisConstant {
    public static final Integer REDIS_EXPIRE = 30;
    public static final String LOCK_USER_REGISTER_KEY = "short-link_lock_user_register:";
    public static final String USER_LOGIN_KEY_PREFIX = "login_";

    /**
     * 短链接跳转前缀key
     */
    public static final String GOTO_SHORT_LINK_KEY = "short-link_goto_%s";

    /**
     * 短链接空值跳转前缀key
     */
    public static final String GOTO_IS_NULL_SHORT_LINK_KEY = "short-link_is-null_goto_%s";

    /**
     * 短链接跳转锁前缀key
     */
    public static final String LOCK_GOTO_SHORT_LINK_KEY = "short-link_lock_goto_%s";
}
